/**
  ******************************************************************************
  * @file    mbhost.c
  * @brief   This file provides code for the configuration
  *          of all used GPIO pins.
  ******************************************************************************
  * @attention
  *
  ******************************************************************************
  */
#include <stdint.h>

extern uint16_t mbhost_read_coils_01(uint8_t *dest, uint16_t maxlen, uint8_t id, uint16_t reg_addr, uint16_t num_of_coils);
extern uint16_t mbhost_read_discrete_inputs_02(uint8_t *dest, uint16_t maxlen, uint8_t id, uint16_t reg_addr, uint16_t num_of_disinputs);
extern uint16_t mbhost_read_holding_registers_03(uint8_t *dest, uint16_t maxlen, uint8_t id, uint16_t reg_addr, uint16_t num_of_regs);
extern uint16_t mbhost_read_input_registers_04(uint8_t *dest, uint16_t maxlen, uint8_t id, uint16_t reg_addr, uint16_t num_of_regs);
extern uint16_t mbhost_write_single_coil_05(uint8_t *dest, uint16_t maxlen, uint8_t id, uint16_t reg_addr, uint8_t state_of_coil);
extern uint16_t mbhost_write_single_register_06(uint8_t *dest, uint16_t maxlen, uint8_t id, uint16_t reg_addr, uint16_t data_of_reg);
extern uint16_t mbhost_write_multiple_coils_15(uint8_t *dest, uint16_t maxlen, uint8_t id, uint16_t reg_addr, const uint8_t *state_of_coils, uint16_t num_of_coils);
extern uint16_t mbhost_write_multiple_registers_16(uint8_t *dest, uint16_t maxlen, uint8_t id, uint16_t reg_addr, const uint16_t *data_of_regs, uint16_t num_of_regs);